<?php
class CommentsController extends AppController{
	function add($patientid){
		$comment=$_POST['comment'];
		$date=date('Y-m-d');
		
		$this->data['Comment']['patient_id']=$patientid;
		$this->data['Comment']['comment']=$comment;
		$this->data['Comment']['date']=$date;
		
		$this->Comment->save($this->data);
		
		$this->requestAction('/patients/setRefiled/'.$patientid);
	}
}
?>